home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Interfaces / AppleScript 1.1 Interfaces / CIncludes / ASDebugging.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-27  |  5.4 KB  |  168 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ASDebugging.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __ASDEBUGGING__
  13. #define __ASDEBUGGING__
  14.  
  15. #ifndef __APPLESCRIPT__
  16. #include <AppleScript.h>
  17. /*    #include <OSA.h>                                            */
  18. /*        #include <AppleEvents.h>                                */
  19. /*            #include <Types.h>                                    */
  20. /*                #include <ConditionalMacros.h>                    */
  21. /*                #include <MixedMode.h>                            */
  22. /*                    #include <Traps.h>                            */
  23. /*            #include <Memory.h>                                    */
  24. /*            #include <OSUtils.h>                                */
  25. /*            #include <Events.h>                                    */
  26. /*                #include <Quickdraw.h>                            */
  27. /*                    #include <QuickdrawText.h>                    */
  28. /*                        #include <IntlResources.h>                */
  29. /*            #include <EPPC.h>                                    */
  30. /*                #include <PPCToolBox.h>                            */
  31. /*                    #include <AppleTalk.h>                        */
  32. /*                #include <Processes.h>                            */
  33. /*                    #include <Files.h>                            */
  34. /*                        #include <SegLoad.h>                    */
  35. /*            #include <Notification.h>                            */
  36. /*        #include <AEObjects.h>                                    */
  37. /*        #include <Components.h>                                    */
  38. /*    #include <TextEdit.h>                                        */
  39. #endif
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. enum  {
  46. /*     This mode flag can be passed to OSASetProperty or OSASetHandler
  47.         and will prevent properties or handlers from being defined in a context
  48.         that doesn't already have bindings for them. An error is returned if
  49.         a current binding doesn't already exist. */
  50.     kOSAModeDontDefine            = 0x0001
  51. };
  52.  
  53.  
  54. ////////////////////////////////////////////////////////////////////////////////
  55.  
  56.  
  57. // Component Selectors
  58.  
  59.  
  60. ////////////////////////////////////////////////////////////////////////////////
  61.  
  62. #define kASSelectSetPropertyObsolete 0x1101
  63.  
  64. #define kASSelectGetPropertyObsolete 0x1102
  65.  
  66. #define kASSelectSetHandlerObsolete 0x1103
  67.  
  68. #define kASSelectGetHandlerObsolete 0x1104
  69.  
  70. #define kASSelectGetAppTerminologyObsolete 0x1105
  71.  
  72. #define kASSelectSetProperty 0x1106
  73.  
  74. #define kASSelectGetProperty 0x1107
  75.  
  76. #define kASSelectSetHandler 0x1108
  77.  
  78. #define kASSelectGetHandler 0x1109
  79.  
  80. #define kASSelectGetAppTerminology 0x110A
  81.  
  82. #define kASSelectGetSysTerminology 0x110B
  83.  
  84. #define kASSelectGetPropertyNames 0x110C
  85.  
  86. #define kASSelectGetHandlerNames 0x110D
  87.  
  88. extern pascal OSAError OSASetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  89.  FIVEWORDINLINE(0x2F3C, 16, 0x1106, 0x7000, 0xA82A);
  90. extern pascal OSAError OSAGetProperty(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  91.  FIVEWORDINLINE(0x2F3C, 16, 0x1107, 0x7000, 0xA82A);
  92. extern pascal OSAError OSAGetPropertyNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingPropertyNames)
  93.  FIVEWORDINLINE(0x2F3C, 12, 0x110C, 0x7000, 0xA82A);
  94. extern pascal OSAError OSASetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  95.  FIVEWORDINLINE(0x2F3C, 16, 0x1108, 0x7000, 0xA82A);
  96. extern pascal OSAError OSAGetHandler(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  97.  FIVEWORDINLINE(0x2F3C, 16, 0x1109, 0x7000, 0xA82A);
  98. extern pascal OSAError OSAGetHandlerNames(ComponentInstance scriptingComponent, long modeFlags, OSAID contextID, AEDescList *resultingHandlerNames)
  99.  FIVEWORDINLINE(0x2F3C, 12, 0x110D, 0x7000, 0xA82A);
  100. extern pascal OSAError OSAGetAppTerminology(ComponentInstance scriptingComponent, long modeFlags, FSSpec *fileSpec, short terminologyID, Boolean *didLaunch, AEDesc *terminologyList)
  101.  FIVEWORDINLINE(0x2F3C, 18, 0x110A, 0x7000, 0xA82A);
  102.  
  103. // Errors:
  104.  
  105.  
  106. //    errOSASystemError        operation failed
  107.  
  108. extern pascal OSAError OSAGetSysTerminology(ComponentInstance scriptingComponent, long modeFlags, short terminologyID, AEDesc *terminologyList)
  109.  FIVEWORDINLINE(0x2F3C, 10, 0x110B, 0x7000, 0xA82A);
  110.  
  111. // Errors:
  112.  
  113.  
  114. //    errOSASystemError        operation failed
  115.  
  116.  
  117. // Notes on terminology ID
  118.  
  119.  
  120. //
  121.  
  122.  
  123. // A terminology ID is derived from script code and language code
  124.  
  125.  
  126. // as follows;
  127.  
  128.  
  129. //
  130.  
  131.  
  132. //        terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  133.  
  134.  
  135. //
  136.  
  137.  
  138. ////////////////////////////////////////////////////////////////////////////////
  139.  
  140.  
  141. // Obsolete versions provided for backward compatibility:
  142.  
  143. extern pascal OSAError ASSetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID scriptValueID)
  144.  FIVEWORDINLINE(0x2F3C, 12, 0x1101, 0x7000, 0xA82A);
  145. extern pascal OSAError ASGetProperty(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *variableName, OSAID *resultingScriptValueID)
  146.  FIVEWORDINLINE(0x2F3C, 12, 0x1102, 0x7000, 0xA82A);
  147. extern pascal OSAError ASSetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID compiledScriptID)
  148.  FIVEWORDINLINE(0x2F3C, 12, 0x1103, 0x7000, 0xA82A);
  149. extern pascal OSAError ASGetHandler(ComponentInstance scriptingComponent, OSAID contextID, const AEDesc *handlerName, OSAID *resultingCompiledScriptID)
  150.  FIVEWORDINLINE(0x2F3C, 12, 0x1104, 0x7000, 0xA82A);
  151. extern pascal OSAError ASGetAppTerminology(ComponentInstance scriptingComponent, FSSpec *fileSpec, short terminologID, Boolean *didLaunch, AEDesc *terminologyList)
  152.  FIVEWORDINLINE(0x2F3C, 14, 0x1105, 0x7000, 0xA82A);
  153.  
  154. // Errors:
  155.  
  156.  
  157. //    errOSASystemError        operation failed
  158.  
  159.  
  160. ////////////////////////////////////////////////////////////////////////////////
  161.  
  162. #ifdef __cplusplus
  163. }
  164. #endif
  165.  
  166. #endif
  167.  
  168.